package org.stars.dao.sqlmapper;

import org.simpleframework.xml.Attribute;

/**
 * Rapresent an sql defined in sql. It is the ancestor of sqlQuery, sqlInsert, etc etc..
 * 
 * @author Francesco Benincasa
 *
 */
public class SqlDefinition extends SqlBase {
	
	public String getParam() {
		return param;
	}

	public void setParam(String param) {
		this.param = param;
	}
	
	@Attribute(name="param",required=true)
	protected String param;
	
	public SqlDefinition(SqlMapper sqlMapper, String id, String simpleText) {
		super(sqlMapper,id,simpleText);
	}

	private static final long serialVersionUID = 2574492583335360384L;
	
	@Override
	public SqlDefinition clone()
	{
		SqlDefinition newObject=new SqlDefinition(null,null,null);
		copyValues(newObject);
		newObject.param=param;
		
		return newObject;		
	}

}
